//1.引入i18n接口
import { createI18n } from "vue-i18n"
//2.引入配置好的中英文
import localZhcn from './languages/zh-cn'
import localEn from './languages/en'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'
//3.初始化i18n的配置
const i18n=createI18n({
    legacy:false,
    locale:'zh-cn',
    fallbackLocale:'zh-cn',
    messages:{
        'zh-cn':localZhcn,
        'en':localEn
    }
})
export const elementLocales = {
    'zh-cn':zhCn,
    en:en
}
//4.对外抛出
export default i18n